﻿<%@ Page Language="C#" MasterPageFile="~/membercenter/membercenter.Master" enableEventValidation="false" AutoEventWireup="true" CodeBehind="memberinfo_edit.aspx.cs" Inherits="YXShop.Web.membercenter.individualinfo.memberinfo_edit" %>

<asp:Content ID="ContHead" runat="server" ContentPlaceHolderID="head">
    <link href="../../admin/style/validator.css" rel="stylesheet" type="text/css" />
    <link href="../../admin/style/toolbar.css" rel="stylesheet" type="text/css" />
    <link href="../../style/mian.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script type="text/javascript" src="../../scripts/prototype.js"></script>
    <script type="text/javascript" src="../../admin/scripts/public.js"></script>
   
 <script type="text/javascript" language="javascript">
function ShowDiv(tabid,num)
{
    var tab;
    for(var i=0;i<num;i++)
    {
        tab=$("tab"+i);
        if(i==tabid)
        {
            tab.style.display='block';
        }
        else
        {
            tab.style.display='none';
        }
    }
}
</script>
<script type="text/javascript">
 function GetCity(controlid,code,value)
        {
            if (code.length>0){
             var control=$(controlid);
             var url="../../admin/plugin/getcity.aspx?parentid="+code; 
             new Ajax.Request(
                url,
                {
                    method: 'get',
                    encoding: 'GBK',
                    onSuccess: function(transport) 
                    {
                        var contentjson=eval("("+transport.responseText+")"); 
                        control.options.length=0;
                        control.options.add(new Option("请选择","")); 
                        for(var i=0;i<contentjson.city.length;i++)
                        {
                            
                            control.options.add(new Option(contentjson.city[i].content,contentjson.city[i].code)); 
                            if(value==contentjson.city[i].code)
                            {
                                control.options[i+1].selected=true;
                            }
                        }
                    }
                }
            );
           }
        }
        window.onload=function(){
            InitForm();
            ShowDiv(0,1); 
            <asp:Literal id="lblScript" runat="server"></asp:Literal>
        }
</script>
</asp:Content>
<asp:Content ID="ContTitle" runat="server" ContentPlaceHolderID="pagetitle" >
编辑个人信息
</asp:Content>
<asp:Content ID="ContInfo" runat="server" ContentPlaceHolderID="pageinfo">
     &#1769;&nbsp;
	    <asp:LinkButton ID="btnSave" runat="server" onclick="btnSave_Click">保存设置</asp:LinkButton>&nbsp;<a href="javascript:history.back()">返回</a>
</asp:Content>
<asp:Content ID="ContSarch" runat="server" ContentPlaceHolderID="pagesarch">
<div>
     <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
 </div>
</asp:Content>
<asp:Content ID="ContMain" runat="server" ContentPlaceHolderID="workspace">
<table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td id="TabTitle0" class="titlemouseover" onclick="ShowTabs(0,4)">会员信息</td>
            <td id="TabTitle1" class="tabtitle" onclick="ShowTabs(1,4)">个人信息</td>
            <td id="TabTitle2" class="tabtitle" onclick="ShowTabs(2,4)">联系信息</td>
            <td id="TabTitle3" class="tabtitle" onclick="ShowTabs(3,4)">业务信息</td>
        </tr>
    </table>
<!--会员基本信息-->
<div id="tab0" class="tabs">
<asp:HiddenField ID="txtUId" runat="server" />
    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
	    <tr>
		    <td class="form_table_input_info">会员帐号：</td>
		    <td>
                <asp:Label ID="lblUserId" runat="server"></asp:Label>
            </td>
            <td><div class="msgNormal">会员名</div></td>
	    </tr>	  
	    <tr>
		    <td class="form_table_input_info">电子邮件：</td>
		    <td>
                <asp:TextBox ID="txtEmail" CssClass="long_input" runat="server"></asp:TextBox> 
            </td>
		    <td>
		        <asp:Panel id="txtEmailTip" runat="server"></asp:Panel>
		    </td>
	    </tr>
	  	    
	    <tr>
		    <td class="form_table_input_info">会员签名：</td>
		    <td>
                <asp:TextBox ID="txtSigned" TextMode="MultiLine" runat="server"></asp:TextBox> 
            </td>
		    <td>
		        <div class="msgNormal">用户的签名信息，该信息主要为防止钓鱼信息!</div>
		    </td>
	    </tr>
	    <tr>
	      <td class="form_table_input_info">
	      是否修改问题答案
	      </td>
	      <td>
	      <asp:RadioButtonList ID="radType" runat="server" RepeatLayout="Flow" RepeatColumns="2">
	        <asp:ListItem Value="0" Text="否" Selected="True" />
	        <asp:ListItem Value="1" Text="是" />
	      </asp:RadioButtonList>
	      </td>
	      <td><div class="msgNormal">是否修改</div></td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">找回密码问题：</td>
		    <td>
                <asp:Label ID="lblQuestion" runat="server"></asp:Label>
            </td>
            <td><div class="msgNormal">密码问题</div></td>
	    </tr>
	    <tr>
	       <td class="form_table_input_info">原找回密码答案：</td>
	       <td>
	          <asp:TextBox ID="txtOldAnswer" runat="server"  CssClass="long_input" ></asp:TextBox>
	       </td>
	       <td><asp:Panel ID="palOld" runat="server" CssClass="msgNormal">如果要修改找回密码答案（原来答案必须填写正确）</asp:Panel></td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">新找回密码答案：</td>
		    <td>
                <asp:TextBox ID="txtNewAnswer" CssClass="long_input" runat="server"></asp:TextBox> 
            </td>
		    <td>
		       <asp:Panel ID="palNew" runat="server" CssClass="msgNormal">如果要修改，新的密码答案不能为空</asp:Panel>
		    </td>
	    </tr>
	    
    </table>
</div>
 <!--联系信息-->
<div id="tab1" class="tabs">
<table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
	    <tr>
		    <td class="form_table_input_info">省市区：</td>
		    <td>
                <asp:DropDownList ID="ddlProvince" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlCity" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlBorough" runat="server">
                </asp:DropDownList>
            </td>
		    <td>
		        <div class="msgNormal">该会员所在的行政区划</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">详细地址：</td>
		    <td>
                <asp:TextBox ID="txtAddress" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">该会员所在地的详细地址，详细联系地址</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">邮政编码：</td>
		    <td>
                <asp:TextBox ID="txtZip" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">邮政编码(必须数字)</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">办公电话：</td>
		    <td>
                <asp:TextBox ID="txtOfficePhone"  CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">请填写正确电话号码</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">家庭电话：</td>
		    <td>
                <asp:TextBox ID="txtHomePhone"  CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">请填写正确电话号码</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">手机：</td>
		    <td>
                <asp:TextBox ID="txtMobilePhone"  CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">请填写正确手机号码</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">小灵通：</td>
		    <td>
                <asp:TextBox ID="txtHandPhone" CssClass="long_input" runat="server"></asp:TextBox> 
		    </td>
		    <td>
		        <div class="msgNormal">请填写正确小灵通号</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">传真：</td>
		    <td>
                <asp:TextBox ID="txtFax"  CssClass="long_input" runat="server"></asp:TextBox> 
            </td>
		    <td>
		        <div class="msgNormal">请填写正确传真号</div>
		    </td>
	    </tr>
	    
	    
	    <tr>
		    <td class="form_table_input_info">个人网站：</td>
		    <td>
                <asp:TextBox ID="txtPersonWebSite" CssClass="long_input" runat="server">http://</asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">个人网站</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">QQ：</td>
		    <td>
                <asp:TextBox ID="txtQQ"  CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">请填写正确QQ号</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">MSN：</td>
		    <td>
                <asp:TextBox ID="txtMSN" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">MSN</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">ICQ：</td>
		    <td>
                <asp:TextBox ID="txtICQ" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">ICQ</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">UC：</td>
		    <td>
                <asp:TextBox ID="txtUC" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">请填写正确UC号</div>
		    </td>
	    </tr>
    </table>
</div>
<!--个人信息-->
<div id="tab2" class="tabs">
    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
	    <tr>
		    <td class="form_table_input_info">真实姓名：</td>
		    <td>
                <asp:TextBox ID="txtTrueName" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">会员的真实姓名</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">称谓：</td>
		    <td>
                <asp:TextBox ID="txtTitle" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">该会员的称谓，用于网店用户或者网站运营商对该会员的称呼，比如:李先生，王女士</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">籍贯：</td>
		    <td>
                <asp:TextBox ID="txtOrigin"  CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">会员的籍贯</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">出生日期：</td>
		    <td>
                <asp:TextBox ID="txtBirthday" CssClass="date_input"   runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">出生日期：格式yyyy-MM-dd</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">性别：</td>
		    <td>
                <asp:DropDownList ID="ddlSex" runat="server"></asp:DropDownList>
            </td>
		    <td>
		        <div class="msgNormal">性别</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">民族：</td>
		    <td>
                <asp:TextBox ID="txtNation" CssClass="long_input" runat="server"></asp:TextBox> 
		    </td>
		    <td>
		        <div class="msgNormal">民族，请尽量按照标准来</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">证件类型/号码：</td>
		    <td>
                <asp:DropDownList ID="ddlPapersType" runat="server"></asp:DropDownList>
                <asp:TextBox ID="txtPapersNumber"  runat="server"></asp:TextBox> 
            </td>
		    <td>
		        <div class="msgNormal">证件的类型和号码</div>
		    </td>
	    </tr>
	    
	    
	    <tr>
		    <td class="form_table_input_info">婚姻状况：</td>
		    <td>
                <asp:DropDownList ID="ddlMarriage" runat="server"></asp:DropDownList>
            </td>
		    <td>
		        <div class="msgNormal">婚姻状况</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">学历：</td>
		    <td>
                <asp:DropDownList ID="ddlEducation" runat="server"></asp:DropDownList>
            </td>
		    <td>
		        <div class="msgNormal">会员的学历信息</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">毕业学校：</td>
		    <td>
                <asp:TextBox ID="txtGraduateSchool" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">毕业学校。如果有多个学校用逗号分开</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">生活爱好：</td>
		    <td>
                <asp:TextBox ID="txtLifeHobbies" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">生活爱好</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">文化爱好：</td>
		    <td>
                <asp:TextBox ID="txtCultureHobbies" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">文化爱好,多个用逗号分开</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">娱乐休闲爱好：</td>
		    <td>
                <asp:TextBox ID="txtEntertainment" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">娱乐休闲爱好,多个用逗号分开</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">体育爱好：</td>
		    <td>
                <asp:TextBox ID="txtSportsHobbies" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">体育爱好,多个用逗号分开</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">其他爱好：</td>
		    <td>
                <asp:TextBox ID="txtOtherHobbies" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">其他爱好,多个用逗号分开</div>
		    </td>
	    </tr>
	     <tr>
		    <td class="form_table_input_info">月收入：</td>
		    <td>
                <asp:TextBox ID="txtMonthlyInCome"  runat="server"></asp:TextBox> 元人民币
            </td>
		    <td>
		        <div class="msgNormal">该会员月收入 必须是数字</div>
		    </td>
	    </tr>
    </table>
</div>
<!--工作信息-->
<div id="tab3" class="tabs">
<table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
	    <tr>
		    <td class="form_table_input_info">公司名称：</td>
		    <td>
                <asp:TextBox ID="txtIncName" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">公司名称</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">部门：</td>
		    <td>
                <asp:TextBox ID="txtDepartment" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">公司所在部门</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">职位：</td>
		    <td>
                <asp:TextBox ID="txtPositions" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">该会员在公司所任职位</div>
		    </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">职务：</td>
		    <td>
                <asp:TextBox ID="txtWorkRange" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">该会员在该公司职务</div>
		    </td>
	    </tr>
	     <tr>
		    <td class="form_table_input_info">公司详细地址：</td>
		    <td>
                <asp:TextBox ID="txtIncAddress" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
		        <div class="msgNormal">公司的详细地址</div>
		    </td>
	    </tr>
</table>
</div>
</asp:Content>
